from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase = "DBshop016"
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,'商品管理','管理分类','前台侧边设置')
firefox.find_element_by_link_text('删除').click()
firefox.switch_to.alert.accept()

xsmc=firefox.find_element_by_xpath('//td[contains(.,"暂无显示设置")]').text
if xsmc=='暂无显示设置':
    writeLog('%s 测试通过' % testCase)
else:
    writeLog('%s 测试不通过' % testCase)
firefox.quit()